package com.lanlin.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.core.annotation.Order;

import java.util.List;


@Order(2)
@ConfigurationProperties(prefix = "auto.gather")
@EnableConfigurationProperties(Location.class)
public class LongitudeLatitudeProperties {

    private List<Location> locations;
 
    // Getter and Setter
    public List<Location> getLocations() {
        return locations;
    }
 
    public void setLocations(List<Location> locations) {
        this.locations = locations;
    }


    @Override
    public String toString() {
        return "LongitudeLatitudeProperties{" +
                "locations=" + locations +
                '}';
    }
}